﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListOrganisationService.ascx.cs"
    Inherits="ServicesDirectory.UserControl.ListOrganisationService" %>
<%@ Register Src="LookupRole.ascx" TagName="LookupRole" TagPrefix="uc1" %>
<link href="../Resources/Css/style-orgservice.css" rel="stylesheet" type="text/css" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="ManagerContentBorder">
            <div class="bgManager">
                <div class="contentGrid">
                    <div class="hearderGrid">
                        <div class="OrgServiceHeaderCol1">
                            <asp:LinkButton runat="server" ID="LbtName" Text="Organisation Name"></asp:LinkButton>
                        </div>
                        <div class="OrgServiceHeaderCol2">
                            <asp:LinkButton runat="server" ID="LinkButton1" Text="Description"></asp:LinkButton>
                        </div>
                        <div class="OrgServiceHeaderCol3">
                            <asp:LinkButton runat="server" ID="LinkButton2" Text="Roles"></asp:LinkButton>
                        </div>
                        <div class="OrgServiceHeaderCol4">
                        </div>
                    </div>
                    <asp:Repeater ID="Repeater1" runat="server">
                        <ItemTemplate>
                            <div class="rowGrid">
                                <div class="OrgServiceContentCol1">
                                    <%#Eval("OrgName") %>
                                </div>
                                <div class="OrgServiceContentCol2">
                                    <%#Eval("ShortDescription") %>
                                </div>
                                <div class="OrgServiceContentCol3">
                                    <asp:Label ID="lblRoles" runat="server" Text=""></asp:Label>
                                </div>
                                <div class="OrgServiceContentCol4">
                                    <asp:LinkButton runat="server" CommandName="EditRole" CommandArgument='<%#Eval("OrgId") %>'
                                        ID="lbEditRole" Text="edit roles" ForeColor="#0066FF"></asp:LinkButton>
                                </div>
                            </div>
                            <asp:HiddenField runat="server" ID="hdfOrgId" Value='<%#Eval("OrgId") %>'></asp:HiddenField>
                            <asp:HiddenField runat="server" ID="hdfArrayRoles" Value='<%#Eval("Roles") %>'></asp:HiddenField>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <div class="alterRowGrid">
                                <div class="OrgServiceContentCol1">
                                    <%#Eval("OrgName") %>
                                </div>
                                <div class="OrgServiceContentCol2">
                                    <%#Eval("ShortDescription") %>
                                </div>
                                <div class="OrgServiceContentCol3">
                                    <asp:Label ID="lblRoles" runat="server" Text=""></asp:Label>
                                </div>
                                <div class="OrgServiceContentCol4">
                                    <asp:LinkButton runat="server" CommandName="EditRole" CommandArgument='<%#Eval("OrgId") %>'
                                        ID="lbEditRole" Text="edit roles" ForeColor="#0066FF"></asp:LinkButton>
                                </div>
                            </div>
                            <asp:HiddenField runat="server" ID="hdfOrgId" Value='<%#Eval("OrgId") %>'></asp:HiddenField>
                            <asp:HiddenField runat="server" ID="hdfArrayRoles" Value='<%#Eval("Roles") %>'></asp:HiddenField>
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                    <div class="PagingList">
                        <span>
                            <asp:Button runat="server" CssClass="backAllList" ID="cmdFirst" />
                        </span><span>
                            <asp:Button runat="server" CssClass="backList" ID="cmdBack" /></span> <span style="padding-left: 5px;">
                                Page</span> <span style="padding-left: 5px;">
                                    <asp:TextBox Text="1" runat="server" Width="20px" ID="txtPageNumber"></asp:TextBox></span>
                        <span>of</span> <span>
                            <asp:Label runat="server" Text="1" ID="lblTotalPage"></asp:Label></span> <span>
                                <asp:Button runat="server" CssClass="nextAll" ID="cmdLast" />
                            </span><span>
                                <asp:Button runat="server" CssClass="nextList" ID="cmdNext" />
                            </span>
                    </div>
                </div>
                <div class="spaceManager">
                </div>
            </div>
        </div>
        <asp:Panel ID="pnLookupRole" CssClass="web_dialog" runat="server" Visible="false">
            <uc1:LookupRole ID="LookupRole1" runat="server" />
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>


